﻿using System;

namespace CamlQueryCreator.Common
{
    /// <summary>
    /// Соединяющий элемент "ИЛИ" CAML-запроса.
    /// </summary>
    public sealed class CamlConnectorOr : CamlConnectorAndOr
    {
        /// <summary>
        /// Соединяющий элемент "ИЛИ" CAML-запроса.
        /// <para>Конструктор.</para>
        /// </summary>
        internal CamlConnectorOr(CamlConnector parentBuilder, Func<ICamlConnector, CamlElement> getOperator1, Func<ICamlConnector, CamlElement> getOperator2): base(parentBuilder, getOperator1, getOperator2)
        {
        }

        #region Overrides of CamlConnectorAndOr

        protected override string ConnectorHeader
        {
            get { return "Or"; }
        }

        #endregion
    }
}
